
using System;
using System.Text;

using NHibernate;
using NHibernate.Cfg;
using NHibernate.Criterion;
using NHibernate.Exceptions;

using LastFMGenNHibernate.EN.LastFM;
using LastFMGenNHibernate.CAD.LastFM;

namespace LastFMGenNHibernate.CEN.LastFM
{
        public partial class SuscritoCEN
        {
        public String EscucharRadioIlim (int p_oid, String nombre, bool suscripcion, int tiempoEscuchado)
        {
                /*PROTECTED REGION ID(LastFM.SuscritoCEN_EscucharRadioIlim_precondition) START*/
            SuscritoEN suscritol = _ISuscritoCAD.ReadOIDDefault(p_oid);
                // Preconditions
                // if( !() )
                //              throw new ModelException("Method EscucharRadioIlim() preconditions are violated.");

                /*PROTECTED REGION END*/
                if (suscritol.Suscrito == false)
                {
                    throw new ModelException("");
                }
                /*PROTECTED REGION ID(LastFM.SuscritoCEN_EscucharRadioIlim_body) ENABLED START*/

                // Body
               // throw new NotImplementedException ("Method EscucharRadioIlim() not yet implemented.");

                /*PROTECTED REGION END*/

                /*PROTECTED REGION ID(LastFM.SuscritoCEN_EscucharRadioIlim_postcondition) START*/

                // Postconditions
                // if( !() )
                //              throw new ModelException("Method EscucharRadioIlim() postconditions are violated.");
                return ("Disfruta la radio");
                /*PROTECTED REGION END*/
        }
        }
}
